namespace Saffron
{
    using System;
    using System.Web;
    using Castle.ActiveRecord;
    using Castle.ActiveRecord.Framework.Config;
    using Saffron.Framework.Users;
    using Saffron.Framework.Projects;
    using Saffron.Framework.Messages;


    public class GlobalApplication : HttpApplication
    {
        public GlobalApplication()
        {
        }

        public void Application_OnStart()
        {
            ActiveRecordStarter.Initialize(ActiveRecordSectionHandler.Instance,
                                            new Type[] 
                                            {
                                                    typeof(UserAccount) 
                                                    , typeof(Project)
                                                    , typeof(UserAttribute)
                                                    , typeof(UserAttributeGroup)
                                                    , typeof(SystemRole) 
                                                    , typeof(Message)
                                                    , typeof(MessageInfo)
                                                    , typeof(Task)
                                            }
                                          );
            
            //Saffron.Framework.Model.TestDataServices.GenerateTestData();
        }

        public void Application_OnEnd()
        {
        }
    }
}
